package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.system.entity.AbdulBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 自助预定订单实体类
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sy_self_service_booking_order")
@ApiModel("自助预定订单")
public class SySelfServiceBookingOrder extends AbdulBaseEntity {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("预定单号")
    private String bookingNumber;

    @ApiModelProperty("会员信息")
    private String vipMessage;

    @ApiModelProperty("电话")
    private String phone;

    @ApiModelProperty("桌台")
    private String desk;

    @ApiModelProperty("桌台分类")
    private String tableClassification;

    @ApiModelProperty("预订时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sstimatedArrivalTime;

    @ApiModelProperty("下单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderTime;

    @ApiModelProperty("订单状态（1-待付款,2-支付成功,3-已取消,4-消费中,5-已完成）")
    private Integer status;

    @ApiModelProperty("预定员工")
    private String bookingStaff;

    @ApiModelProperty("实付金额（分）")
    private String payAmount;


    @ApiModelProperty("订单类型 1-新购，2-续购")
    private Integer orderType;


    @ApiModelProperty("预订时长")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date bookingTime;

    @ApiModelProperty("门店id")
    private Long storeId;


    //dto
    @ApiModelProperty("订单状态")
    @TableField(exist = false)
    private String statusDesc;
}
